package fun.werfamily.wf.auth.core.feign;

import fun.werfamily.wf.auth.core.dto.VerifyCodeReqDTO;
import fun.werfamily.wf.auth.core.feign.dto.UserInfoDTO;
import fun.werfamily.wf.auth.core.feign.dto.UserInfoReqDTO;
import fun.werfamily.wf.base.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Mr.WenMing Zhang
 * @Date: 2023-04-03 21:24
 * @Description:
 */
@FeignClient(name = "user-core", path = "/user-core/user")
public interface UserRemoteService {
    /**
     * 用户详情
     * @param userInfoReqDTO
     * @return
     */
    @PostMapping("/info")
    Result<UserInfoDTO> getUserInfo(@RequestBody UserInfoReqDTO userInfoReqDTO);

    /**
     * 验证码校验
     * @param verifyCodeReqDTO
     * @return
     */
    @PostMapping("/checkVerifyCode")
    Result<Boolean> checkVerifyCode(@RequestBody VerifyCodeReqDTO verifyCodeReqDTO);
}
